package com.crawler.search.index.querier;

import com.crawler.search.index.entity.QueryParam;
import org.elasticsearch.index.query.MultiMatchQueryBuilder;


/**
 *
 * ES数据查询实体
 * @Class Name ESService
 * @author zhangyonghui
 * @Create In 下午3:50:26
 */
public  class PhraseQuerier extends MultiMatchQuerier{

	public PhraseQuerier(QueryParam param) {
		this.fieldBoostMap = param.getFieldBoostMap();
		this.fieldMap = param.getFiledMap();
		this.shouldMap = param.getShouldMap();
		this.segMap = param.getSegMap();
		this.rangeMap = param.getRangeMap();
		this.search = param.getSearch();
		this.type = MultiMatchQueryBuilder.Type.PHRASE;
	}
}
